package com.example.sys.org.model;

import com.example.sys.org.form.SysOrgDeptForm;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

@Getter
@Setter
@Entity
@Table(name = "sys_org_dept")
public class SysOrgDept extends SysOrgElement {

    @Override
    public Class<?> getFormClass() {
        return SysOrgDeptForm.class;
    }

    @Override
    public void recalculateFields() {
        super.recalculateFields();
        this.fdOrgType = SysOrgConstant.ORG;
    }
}
